<?php
namespace app\index\controller;
use app\index\controller\Base;

class Index  extends Base
{
    public function index()
    {
        $articles = db("article")->order("id desc")->paginate(3);
        $this->assign("articles",$articles);
        return $this->fetch();
    }
}
